package main.chapter7.io;

import java.io.*;

public class IoJava {
    public static void main(String[] args) {
        BufferedReader bufferedReader = null;
        try {
            File file = new File("src/main/chapter7/io/ioTestFile.txt");
            bufferedReader = new BufferedReader(new FileReader(file));
            String line;
            while ((line = bufferedReader.readLine()) != null) {
                System.out.println(line);
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if (bufferedReader!=null){
                try {
                    bufferedReader.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
